<template>
  <view>
    <view>
      <view class="nav-head">恭喜您注册成功!</view>
      <view class="content">
        <view class="nikoName">asdfa</view>
        <view>欢迎开始便捷订货服务。</view>
        <view class="account">
          您的账号：
          <text>娜可露露</text>
        </view>
        <view>1.注册完成后您还需要:</view>
        <view class="imgBox"><image src="/static/img/register/pc.png" mode="widthFix"></image></view>
        <view>登录pc端，上传 您的商品和客户信息，搭建专属订货平台。</view>
        <view class="address">
          PC端登录地址:
          <text>pc.llI168.com</text>
        </view>
        <view>2.关注公主号:平台名称</view>
        <view class="imgBox"><image src="/static/img/register/erweima.png" mode="widthFix"></image></view>
        <view style="text-align: center;">通过微信也可以快速处理订单</view>
        <view class="footer">
          <uni-navigator class="btn default">下载app</uni-navigator>
          <uni-navigator class="btn" @click="toLogin">立即登录</uni-navigator>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    toLogin() {
      uni.hideKeyboard();
      uni.redirectTo({ url: 'login' });
      uni.navigateBack();
    }
  }
};
</script>

<style lang="scss">
@import '../../static/css/login.scss';
.nav-head {
  margin: 40rpx 30rpx;
  margin-bottom: 20rpx;
  font-size: 40rpx;
  font-weight: bold;
}
.content {
  padding: 20rpx;
  font-size: 34rpx;
  view {
    margin: 20rpx 0;
  }
  .nikoName {
    color: #ff453d;
    font-size: 38rpx;
  }
  .account {
    display: inline-block;
    padding: 20rpx 0;
    border-bottom: 1rpx solid #ff453d;
    text {
      color: #666;
    }
  }
  .imgBox {
    text-align: center;
    image {
      padding: 20rpx;
      width: 50%;
    }
  }
  .address {
    margin: 20rpx 0;
    text {
      color: #ff453d;
    }
  }
  .footer {
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    .btn {
      color: #fff;
      width: 100%;
      height: 90upx;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 20upx;
      background-color: #fff;
      background: linear-gradient(to right, #fa3d30, #d63429);
      font-size: 40rpx;
      margin: 30rpx;
      &.default {
        background: #ffffff;
        border: 1rpx solid #d63429;
        color: #d63429;
      }
    }
  }
}
</style>
